import request from '@/utils/request'


export function addAppointment(data) {
    return request({
        url: 'api/appointment/addAppointment',
        method: 'post',
        data: data
    })
}

export function getAppointment(id) {
    return request({
        url: 'api/appointment/getAppointment/'+id,
        method: 'get',
    })
}

export function getAppointmentDate(id) {
    return request({
        url: 'api/appointment/getAppointmentDate',
        method: 'get',
    })
}